package com.financing.platform.dao;

import java.sql.SQLException;
import java.util.List;

import com.financing.platform.dto.CompanyDTO;
import com.financing.platform.dto.CompanyInvitationCodeDTO;

public interface ICompanyDao extends IBaseDao  {
	/**
	 * 
	* @Title: addComany 
	* @Description: 添加机构
	* @param   companyDTO
	* @param @throws SQLException    
	* @return int   
	* @throws
	 */
	public int addComany(CompanyDTO companyDTO) throws SQLException;
	
	/**
	 * 
	* @Title: queryComanyList 
	* @Description: 查询机构列表
	* @param   companyDTO
	* @return List<ComanyDTO>   
	* @throws
	 */
	public List<CompanyDTO> queryComanyList(CompanyDTO companyDTO);
	
	/**
	 * @throws SQLException 
	 * 
	* @Title: updateComany 
	* @Description: 更新机构状态
	* @param   companyDTO
	* @return int   
	* @throws
	 */
	public int updateComany(CompanyDTO companyDTO) throws SQLException;
	
	/**
	 * 
	 * @Title: makeComanyUser
	 * @Description: 添加机构总账户 
	 * @param @param id
	 * @param @return
	 * @param @throws SQLException   
	 * @return int   
	 * @throws
	 */
	public int makeComanyUser(CompanyInvitationCodeDTO cic) throws SQLException;
	
	/**
	 * 
	 * @Title: addCompanyInvitationCode
	 * @Description: 添加机构账户注册码 
	 * @param @param cic
	 * @param @return
	 * @param @throws SQLException   
	 * @return int   
	 * @throws
	 */
	public int addCompanyInvitationCode(CompanyInvitationCodeDTO cic) throws SQLException;
	
}
